package com.travel.server.manager.impl.controller;

import com.travel.server.manager.api.IAdvertisingService;
import com.travel.server.manager.dto.request.EmptyRequest;
import com.travel.server.manager.dto.request.advertising.*;
import com.travel.server.manager.impl.controller.base.AbstractController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiZhenhui
 * @Date: 2018/12/20 14:33
 * @Desc:
 */
@RestController
public class AdvertisingController extends AbstractController implements IAdvertisingService {
    @Override
    public Object queryAdvertisingPositionList(@RequestBody QueryAdvertisingPositionListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object deleteAdvertisingPosition(@RequestBody DeleteAdvertisingPositionRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateAdvertisingPosition(@RequestBody UpdateAdvertisingPositionRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryAdvertisingPositionEnum(@RequestBody EmptyRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryAdvertisingSourceList(@RequestBody QueryAdvertisingSourceListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object deleteAdvertisingSource(@RequestBody DeleteAdvertisingSourceRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateAdvertisingSource(@RequestBody UpdateAdvertisingSourceRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryContentMessage(@RequestBody QueryContentMessageRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateContentMessage(@RequestBody UpdateContentMessageRequest request) {
        return this.getCommand().handle(request);
    }
}
